package com.framework.loippi.sms;

import com.framework.loippi.api.utils.ApiUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(tags = {"测试接口"})
@RequestMapping("/api/v1/sms/")
public class SmsController {

@Autowired
    private AliyunSmsService aliyunSmsService;

    @RequestMapping(value = "sendSms.json", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
    @ApiOperation("发送短信")
    public String sendSms(){
        aliyunSmsService.sendSmsTools("18788103149","18788103149");
        return ApiUtils.success();
    }

}
